<?php
namespace app\baseinfo\controller;

class Companies extends \app\common\controller\Base {
	protected $modelname='Company';
	protected $autoWriteUserId=true;

	protected function _index(){
		$condition=[];
		$param=$this->param;

		if (isset($param['name']))
		$condition[]=['name','like',"%".$param['name']."%"];

		if (isset($param['industry']))
		$condition[]=['industry','like',"%".$param['industry']."%"];

		if (isset($param['remark']))
		$condition[]=['remark','like',"%".$param['remark']."%"];

		return $condition;
	}
}

?>